package org.witsoft.demo.graphql.extend.scalar;

import graphql.schema.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class CustomerScalars {

    @Bean
    public GraphQLScalarType dateScalar(){
        return GraphQLScalarType.newScalar()
                .name("Date")
                .description("日期")
                .coercing(new DateCoercing())
                .build();
    }
}
